<!DOCTYPE html>
<html>
<head>
    <title>维护规程详情</title>
    #parse("sys/header.html")
</head>
<body>
    <div>
        <table id="jqGrid"></table>
    </div>
</body>
<script>
    var id = getQueryString("id");
    $(function () {
        $("#jqGrid").Grid({
            url: '../devplangc/list?id='+id,
            colModel: [
                // {label: '所属维护计划', name: 'devPlan', index: 'DEV_PLAN', width: 80},
                {label: '所属维护计划', name: 'planName', index: 'PLAN_NAME', width: 80},
                {
                    label: '开始时间', name: 'startTime', index: 'START_TIME', width: 80,
                    formatter: function (v) {
                        return transDate(v)
                    }
                },
                {
                    label: '结束时间', name: 'endTime', index: 'END_TIME', width: 80,
                    formatter: function (v) {
                        return transDate(v)
                    }
                },
                {label: '创建用户', name: 'createUser', index: 'CREATE_USER', width: 80},
                {
                    label: '创建时间', name: 'createDate', index: 'CREATE_DATE', width: 80,
                    formatter: function (v) {
                        return transDate(v, 'yyyy-MM-dd')
                    }
                },
                {
                    label: '状态', name: 'status', index: 'STATUS', width: 80, formatter: function (v) {
                        return sysEnums.GC_CHECK[v];
                    }
                },
                {label: '催办', name: 'urge', index: 'URGE', width: 80},
                {label: '维护人', name: 'executor', index: 'EXECUTOR', width: 80},
                {label: 'id', name: 'id', index: 'ID', key: true, hidden: true},
            ]
        });
    });

    let vm = new Vue({
        el: '#rrapp',
        data: {
            showList: true,
            title: null,
            devPlanGc: {
                delFlag: '',
                createUser: '',
                createDate: '',
                deptCode: '',
                devOption: '',
                devGc: '',
                devPlan: '',
                id: '',
            },
            repairUserList: {},
            devPlanGcDate:{},
            ruleValidate: {
                name: [
                    {required: true, message: '名称不能为空', trigger: 'blur'}
                ]
            },
            q: {
                name: ''
            }
        },
        methods: {

        }

    })
</script>
</html>